home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / poly.z / poly
Encoding:
Text File  |  2002-10-03  |  4.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ppppoooollllyyyy((((3333GGGG))))                                                              ppppoooollllyyyy((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ppppoooollllyyyy,,,, ppppoooollllyyyyiiii,,,, ppppoooollllyyyyssss,,,, ppppoooollllyyyy2222,,,, ppppoooollllyyyy2222iiii,,,, ppppoooollllyyyy2222ssss - outlines a polygon
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd ppppoooollllyyyy((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  13.      lllloooonnnngggg nnnn;;;;
  14.      CCCCoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[3333]]]];;;;
  15.  
  16.      vvvvooooiiiidddd ppppoooollllyyyyiiii((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  17.      lllloooonnnngggg nnnn;;;;
  18.      IIIIccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[3333]]]];;;;
  19.  
  20.      vvvvooooiiiidddd ppppoooollllyyyyssss((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  21.      lllloooonnnngggg nnnn;;;;
  22.      SSSSccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[3333]]]];;;;
  23.  
  24.      vvvvooooiiiidddd ppppoooollllyyyy2222((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  25.      lllloooonnnngggg nnnn;;;;
  26.      CCCCoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[2222]]]];;;;
  27.  
  28.      vvvvooooiiiidddd ppppoooollllyyyy2222iiii((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  29.      lllloooonnnngggg nnnn;;;;
  30.      IIIIccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[2222]]]];;;;
  31.  
  32.      vvvvooooiiiidddd ppppoooollllyyyy2222ssss((((nnnn,,,, ppppaaaarrrrrrrraaaayyyy))))
  33.      lllloooonnnngggg nnnn;;;;
  34.      SSSSccccoooooooorrrrdddd ppppaaaarrrrrrrraaaayyyy[[[[]]]][[[[2222]]]];;;;
  35.  
  36.      All of the above routines are functionally the same.  They differ only in
  37.      the type declarations of their parameters and in whether they assume a
  38.      two- or three-dimensional space.
  39.  
  40. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  41.      _n        expects the number of vertices in the polygon.
  42.  
  43.      _p_a_r_r_a_y   expects the array containing the vertices of the polygon.
  44.  
  45. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  46.      ppppoooollllyyyy outlines a polygon. A polygon is represented as an array of
  47.      vertices.  The first and last vertices connect automatically to close the
  48.      polygon.  The vertices can be expressed as integers, shorts, or real
  49.      numbers, in 2-D or 3-D coordinates.  2-D polygons are drawn with _z=0.
  50.  
  51.      Because the polygon is drawn as a sequence of line segments, it inherits
  52.      all properties that affect the drawing of lines.  These include the
  53.      current color, writemask, line width, stipple pattern, shade model, line
  54.      antialiasing mode, and subpixel mode.  The stipple pattern is initialized
  55.      to bit zero of the current linestyle before the polygon is drawn, then
  56.      shifted continuously through the segments of the polygon.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ppppoooollllyyyy((((3333GGGG))))                                                              ppppoooollllyyyy((((3333GGGG))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      bgnclosedline, linewidth, linesmooth, lsrepeat, polf, scrsubdivide,
  76.      setlinestyle, shademodel, subpixel
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.